import request from '@/utils/request'
const baseUrl = '/comment'

export const reqV2AddComment = (
  courseId: string,
  content: string,
  pid: string,
) =>
  request.post<any, TableResponse>(`${baseUrl}/v2/add`, {
    courseId,
    content,
    pid,
  })

export const reqV2CommentTree = (courseId: string) =>
  request.get<any, TableResponse>(`${baseUrl}/v2/tree`, {
    params: { courseId },
  })
